<%@ page import="cn.com.entity.Vipapplication" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2020/10/23
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page errorPage="/WebContent/Public/error/noneapp.jsp" %>
<html>
<head>
    <title>进度查询</title>
    <script src="/WebContent/JQuery/jquery-3.4.1.js" type="text/javascript"></script>
    <style type="text/css" rel="stylesheet">
        .all{
            width: 800px;
            margin: 0 auto;
            margin-top: 100px;
            border: 2px solid #0192e8;
            text-align: center;
        }
        td{
            text-align: center;
        }
        table{
            width: 600px;
            margin: 0 auto;
        }
        .content{
            width: 600px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
     <article class="all">
         <%
             List app = (List)request.getAttribute("myapp");
             Vipapplication myapp = (Vipapplication)app.get(0);
             int State = myapp.getVipUserAppState();
         %>
         <table border="1">
             <tr>
                 <th>用户名</th>
                 <th>邮箱地址</th>
                 <th>注册时间</th>
                 <th>会员开始时间</th>
                 <th>会员结束时间</th>
                 <th>申请状态</th>
             </tr>
             <tr>
                 <td><%=myapp.getUsername()%></td>
                 <td><%=myapp.getUserEmail()%></td>
                 <td><%=myapp.getVipUserRegisterTime()%></td>
                 <td><%=myapp.getVipUserAppStartTime()%></td>
                 <td><%=myapp.getVipUserAppEndTime()%></td>
                 <td class="state"></td>
             </tr>
         </table>
         <div class="content">
             <h4>
                 申请原因：<%=myapp.getVipUserAppWhy()%>
             </h4>
         </div>
         <script>
             $(document).ready(function () {
                     var state = '<%=State%>';
                     if(state == '0'){
                         $(".state").html("<font style='color: orange;font-size: 16px'>审核中</font>");
                     }else if(state == '1'){
                         $(".state").html("<font style='color: green;font-size: 16px'>审核通过</font>");
                     }else if(state == '2'){
                         $(".state").html("<font style='color: red;font-size: 16px'>审核失败</font>");
                     }

             })
         </script>
     </article>
</body>
</html>
